<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改元素的显示方式</title>
    <style>
        #d1 {
            width: 200px;
            height: 200px;
            background-color: yellowgreen;
            /* 将元素改为行内元素的显示方式 */
            display: inline;
        }
        #d2 {
            width: 200px;
            height: 200px;
            background-color: blue;
            /* 将元素改为行内块元素的显示方式 */
            display: inline-block;
        }
        #d3 {
            width: 200px;
            height: 200px;
            background-color: skyblue;
            /* 将元素改为块元素的显示方式 */
            display: block;
        }
        #s1 {
            width: 200px;
            height: 200px;
            background-color: #ffccff;
            display: block;
        }
        #s2 {
            width: 200px;
            height: 200px;
            background-color: lime;
            display: block;
        }
    </style>
</head>
<body>
    <div id="d1">内容一</div>
    <div id="d2">内容二</div>
    <div id="d3">内容三</div>
    <span id="s1"></span>
    <span id="s2"></span>
</body>
</html>